#ifndef THREADTCPSERVER_H
#define THREADTCPSERVER_H

#include <QObject>
#include <QTcpServer>

class ThreadTcpServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit ThreadTcpServer(QObject *parent = nullptr);

protected:
    void incomingConnection(qintptr socketDescriptor) override;

signals:
    void new_connection(qintptr socketDescriptor);
};

#endif // THREADTCPSERVER_H
